home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / c / gcc222-2.lha / gcc_include / time.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-20  |  939 b   |  41 lines

  1. /*    time functions for ansic.library    */
  2. /*    (c)Copyright 1992 Davide Pasetto     */
  3.  
  4. #ifndef    _TIME_H
  5. #define _TIME_H
  6.  
  7. #include    <sys/types.h>
  8.  
  9. struct tm {
  10.     int tm_sec,        /* secondi 0-59 */
  11.         tm_min,        /* minuti  0-59 */
  12.         tm_hour,    /* ora     0-23 */
  13.         tm_mday,    /* giorno del mese 0-31 */
  14.         tm_mon,        /* mese    0-11 */
  15.         tm_year,    /* anni dopo 1900 */
  16.         tm_wday,    /* giorno da domenica 0-6 */
  17.         tm_yday,    /* giorni dal 1 gennaio 0-366 */
  18.         tm_isdst;    /* flag per l'ora legale  >0 se legale, <0 se non disponibile, =0 ora solare */
  19. };
  20.  
  21. #ifdef    __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. extern    clock_t        clock(void);
  26. /*extern    time_t        time(time_t *);*/
  27. extern    double        difftime(time_t, time_t);
  28. extern    time_t        mktime(struct tm *);
  29. extern    char        *asctime(const struct tm *);
  30. extern    char        ctyme(const struct tm *);
  31. extern    struct tm    *gmtime(time_t *);
  32. extern    struct tm    *localtime(time_t *);
  33.  
  34. #ifdef    __cplusplus
  35. }
  36. #endif
  37.  
  38. #define CLOCKS_PER_SEC    1000
  39.  
  40. #endif /* _TIME_H */
  41.